package com.manage.customer.service;

import com.manage.customer.entity.Customer;
import com.manage.utils.Criteria;

import java.util.List;

/**
 * @author Fitch
 */
public interface CustomerService {
    /**
     * 新增、修改
     * @param customer
     * @return
     */
    Customer saveOrUpdateCustomer(Customer customer);

    /**
     * 详情
     * @param id
     * @return
     */
    Customer getById(Long id);

    /**
     * 列表
     * @param criteria
     * @return
     */
    List<Customer> findList(Criteria criteria);
}
